(jQuery);
jQuery(document).ready(function($) {    
    $('html').bind("contextmenu", function(e) {
        e.preventDefault();
        $('.gamedialog').dialog({
            modal: true,
            buttons: {
                        Ok: function() {
                            $( this ).dialog( "close" );
                        }
                    }
        });
    });    
});

function sortAlpha(a,b){
    return a.innerHTML > b.innerHTML ? 1 : -1;
}